home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 872 b | 25 lines | [TEXT/GEOL] |
- Item 2046283 14-Aug-89 18:21
-
- From: ALGER Alger, Jeff
-
- To: D1220 Vari-Lite, Andy Meldrum,PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Response to Object Pascal +
-
- Andy,
-
- I know what you're getting at, but that's just not Object Pascal. In fact,
- it's not even Macintosh Pascal without the objects, since there is no way to
- call a function or procedure by address without resorting to assembler!
-
- Why not consider passing an object instead? If you want to pass a comparison
- function to a sort routine, create a TSortComparator object with one method
- called Compare. Subclass TSortComparator to override the Compare method as
- needed, then pass the subclass to your routine. OK, grubby, but it is at least
- consistent with Object Pascal usage.
-
- Jeff
-
-